package mis.ds.ps.model;

import java.util.LinkedList;
import java.util.List;

import org.apache.log4j.Logger;

public class MapperComposite implements Mapper {

	private static Logger logger = Logger.getLogger(MapperComposite.class);

	private String name;

	private List<Mapper> mappersList;

	public MapperComposite(String name) {
		this.name = name;
	}

	public void addMapper(Mapper map) {
		if (mappersList == null) {
			mappersList = new LinkedList<Mapper>();
		}

		mappersList.add(map);
	}

	public void removeMapper(Mapper map) {
	}

	public void setMappersList(List<Mapper> mappersList) {
		this.mappersList = mappersList;
	}

	public List<Mapper> getMappersList() {
		return mappersList;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isReadyForExecute() {
		// TODO Auto-generated method stub
		return false;
	}

}
